

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class GroupRules
     {

            //Write any additional methods or properties here 
            //Don't modify any genrated classes


         Groups _objGroups = null;

         public Groups objGroups
         {
             get {
                 if (_objGroups == null)
                 {
                     GroupsDB objGroupsDB = new GroupsDB(ConnectionStrings.LMS);
                     List<Groups> lstGroups = objGroupsDB.getGroupsByID(GroupID);
                     if (lstGroups.Count == 0)
                         return new Groups();

                     _objGroups = lstGroups[0];
                 }
                 
                 
                 
                 
                 return _objGroups; }
             
         }



         Rules _objRules = null;

         public Rules objRules
         {
             get {

                 if (_objRules == null)
                 {
                     RulesDB objRules = new RulesDB(ConnectionStrings.LMS);
                     List<Rules> lstRules = objRules.getRulesByID(RuleID);
                     if (lstRules.Count == 0)
                         return new Rules();

                     _objRules = lstRules[0];
                 }
                 
                 
                 
                 
                 return _objRules; }
             
         }


     
     }



  
}
